<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-warning-edit" th:object="${warning}">
            <input id="warnId" name="warnId" th:field="*{warnId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">设备号：</label>
				<div class="col-sm-8">
					<input id="macId" name="macId" th:field="*{macId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">故障描述：</label>
				<div class="col-sm-8">
					<input id="warnDetail" name="warnDetail" th:field="*{warnDetail}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">故障时间：</label>
				<div class="col-sm-8">
					<input id="warnHappenTime" name="warnHappenTime" th:field="*{warnHappenTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理状态 0未处理 1已处理：</label>
				<div class="col-sm-8">
					<input id="dealState" name="dealState" th:field="*{dealState}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理备注：</label>
				<div class="col-sm-8">
					<input id="dealRemark" name="dealRemark" th:field="*{dealRemark}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">故障原因：</label>
				<div class="col-sm-8">
					<input id="warnReason" name="warnReason" th:field="*{warnReason}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理时间：</label>
				<div class="col-sm-8">
					<input id="dealTime" name="dealTime" th:field="*{dealTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">处理人：</label>
				<div class="col-sm-8">
					<input id="warnDealer" name="warnDealer" th:field="*{warnDealer}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">故障组件名称：</label>
				<div class="col-sm-8">
					<input id="warnMat" name="warnMat" th:field="*{warnMat}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">删除标记：</label>
				<div class="col-sm-8">
					<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "gxgw_modules/warning";
		$("#form-warning-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-warning-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
